<?php

	// Function to create the places where the charts are going to be located
	function  create_div_charts($voc_list) {
	
		foreach ($voc_list as $dim) {
			
			
			$max_r = count($_SESSION['l_'.$dim]);
			echo '<p class=\'photo_link_left\'>
					<a href="javascript:PopupImage(\''.$_SESSION['l_'.$dim][mt_rand(0,$max_r-2)].'\')">
					See '. $dim .' ' . $_SESSION['left_concept'] 
					.'</a></p>';
			$max_r = count($_SESSION['r_'.$dim]);
			echo '<p class=\'photo_link_right\'>
					<a href="javascript:PopupImage(\''.$_SESSION['r_'.$dim][mt_rand(0,$max_r-2)].'\')">See '. $dim .' ' . $_SESSION['right_concept'] .'</a></p>';
			// echo '<h6>' . $color_name;
			echo '<div class="conf_chart_area" id="' . $dim . '_chart">';
			echo '</div>';
			// echo '</h6>';
			
			
		}
	}

?>